<{if $full_page }>
<{include file="page/header.htm"}>
<link href="/skin/adminhtml/assets/css/dataTables.bootstrap.css" rel="stylesheet" />
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <i class="fa fa-home"></i>
                            <a href="#">系统管理</a>
                        </li>
                        <li class="active">广告位管理</li>
                    </ul>
                </div>
                <!-- /Page Breadcrumb -->
                
                <!-- Page Header -->
                <div class="page-header position-relative">
                    <div class="header-title">
                        <h1>
                             系统管理
                        </h1>
                        <small>
                                <i class="fa fa-angle-right"></i>
                              广告位管理
                       </small>
                    </div>
                    <!--Header Buttons-->
                    <div class="header-buttons">
                        <a class="sidebar-toggler" href="#">
                            <i class="fa fa-arrows-h"></i>
                        </a>
                        <a class="refresh" id="refresh-toggler" href="">
                            <i class="glyphicon glyphicon-refresh"></i>
                        </a>
                        <a class="fullscreen" id="fullscreen-toggler" href="#">
                            <i class="glyphicon glyphicon-fullscreen"></i>
                        </a>
                    </div>
                    <!--Header Buttons End-->
                </div>
                <!-- /Page Header -->
                <!-- Page Body -->
                <div class="page-body">
                  <{include file="page/msg.htm"}>
                  <div class="row">
                        <div class="col-xs-12 col-md-12">
                            <div class="widget">
                                <div class="widget-header bg-themeprimary">
                                    <span class="widget-caption">广告位管理</span>
                                    <div class="widget-buttons">
                                        <button type="button" class="btn btn-success" onclick="window.location='<{url path='ad/adpositionedit'}>';"><i class="fa fa-plus"></i>添加</button> 
                                    </div>
                                </div>
                                
                                <div class="widget-body flip-scroll" id="listTable">
<{/if}>
                                    <table class="table table-bordered table-striped table-condensed table-hover flip-content">
                                        <thead>
                                            <tr role="row">
                                                <th width="5%">选择</th>
                                                <th>名字</th>
                                                <th width="15%">操作</th>
                                            </tr>
                                        </thead>

                                        <tbody>
                                          
                                            <{foreach from=$dataList->items item=item }>
                                            <tr id="<{$item->id}>" parent="<{$item->parent_id}>">
                                                <td>
                                                    <label>
                                                        <input type="checkbox" name="id" value="<{$item->id}>">
                                                        <span class="text"></span>
                                                    </label>
                                                </td>
                                                <td><{$item->name}></td>
                                                <td>
                                                    <a class="btn btn-primary"  href="<{url path='ad/adpositionedit' id=$item->id}>"><i class="fa fa-edit"></i>编辑</a>
<!--                                                     <a class="btn btn-danger"  href="javascript:void(0)" onclick="listTable.remove(<{$item->id}>,'您确认要删除吗?')"><i class="fa fa-remove"></i>删除</a> -->
                                                </td>
                                           </tr>
                                            <{foreachelse}>
                                                <tr>
                                                 <td colspan="7" style="text-align:center; color:#F00">
                                                    暂无数据!
                                                 </td>
                                                </tr>
                                            <{/foreach}>
                                            
                                        </tbody>
                                        
                                        
                                    </table>

<{if $full_page }>              
                      
                                </div>
                                
                                <div class="row DTTTFooter">
                                <div class="col-sm-6">
                          <div class="dataTables_info" id="listtable_info" role="status" aria-live="polite">
                                总共<span class="recordCount"></span>条记录,共<span class="pageCount"></span>页
                          </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="dataTables_paginate paging_bootstrap" id="simpledatatable_paginate">
                                        <ul class="pagination" id="listtable_page">
                                         
                                        </ul>
                                    </div>
                                </div>
                               </div>
                
                
                            </div>
                        </div>
                    </div>
                
                </div>
                <!-- /Page Body -->
            </div>
<{include file="page/footer.htm"}>
<script src="/skin/adminhtml/js/jquery.twbsPagination.min.js"></script>
<script src="/skin/adminhtml/assets/js/datetime/bootstrap-datepicker.js?t=111"></script>
<script src="/skin/adminhtml/js/utils.js"></script>
<script src="/skin/adminhtml/js/listTable.js?t=111"></script>
<script type="text/javascript">
    $('.date-picker').datepicker();
    listTable.recordCount = <{$dataList->totalSize}>;
    listTable.pageCount = <{$dataList->totalPage}>;
    listTable.currentPage = <{$dataList->currentPage}>;
    <{foreach from=$dataList->filter item=item key=key}>
    listTable.filter.<{$key}> = '<{$item}>';
    <{/foreach}>
    listTable.init();
    
     function searchData()
     {
        listTable.filter.keywords = Utils.trim(document.forms['searchForm'].elements['keywords'].value);
        listTable.filter.cat_id = Utils.trim(document.forms['searchForm'].elements['cat_id'].value);
        listTable.filter.page = 1;
        listTable.loadList();
     }

</script>
<{/if}>